package game

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type ProjectGameInfoRouter struct{}

func (s *ProjectGameInfoRouter) InitProjectGameInfoRouter(Router *gin.RouterGroup) {
	apiRouter := Router.Group("projectGameInfo").Use(middleware.OperationRecord())
	{
		apiRouter.POST("getProjectGameInfoList", projectGameInfoApi.GetProjectGameInfoList) // 获取路由组
		apiRouter.POST("createProjectGameInfo", projectGameInfoApi.CreateProjectGameInfo)   // 创建Api
		apiRouter.DELETE("deleteProjectGameInfo", projectGameInfoApi.DeleteProjectGameInfo) // 删除Api
		apiRouter.POST("getProjectGameInfo", projectGameInfoApi.GetProjectGameInfoById)     // 获取单条Api消息
		apiRouter.PUT("updateProjectGameInfo", projectGameInfoApi.UpdateProjectGameInfo)    // 更新api
	}
}
